import request from '@/config/axios'
/**
 * 分页查询办公区
 */
export const pageQuery = (params) => {
  return request.get({ url: '/area/office-area/page-query', params })
}

/**
 * 新增办公区
 */
export const create = (data) => {
  return request.post({ url: '/area/office-area/create', data })
}

/**
 * 更新办公区
 */
export const update = (data) => {
  return request.put({ url: '/area/office-area/update', data })
}

/**
 * 获取单个办公区
 */
export const singleGet = (id) => {
  return request.get({ url: '/area/office-area/single-get?id=' + id })
}

/**
 * 查询
 */
export const simpleList = () => {
  return request.get({ url: '/area/office-area/simple-list' })
}
